﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;
using Sharp.Infrastructure;
using Sharp.Portal.ExtNet.Provider;
using Sharp.Portal.Mvc.Form;

namespace Sharp.Portal.ExtNet
{
    /// <summary>
    /// Form页
    /// </summary>
    public class ExtSharpFrom : SharpFrom
    {
        /// <summary>
        /// Form页
        /// </summary>
        /// <param name="model"></param>
        public ExtSharpFrom(object model) : base(model)
        {
            this.RefreshGrid = HttpContext.Current.Request.Params["RefreshGrid"];
        }
        /// <summary>
        /// 初始化表单
        /// </summary>
        protected override void InitForm()
        {
            base.InitForm();
            //if (WebServer.IsMobileDevice())
            //    Maximized = true;

        }
        /// <summary>
        /// 初始化适配器
        /// </summary>
        public override void InitProvider()
        {
            this.Provider = new FromPage();

        }
    }
}